﻿using System;
using System.Collections.Generic;

namespace YArchitech.Plumbing
{
	public class EqualityComparer : IEqualityComparer<SprinklerInfo>
	{
		public bool Equals(SprinklerInfo x, SprinklerInfo y)
		{
			return x != null && y != null && x.CollisionSprinkler.Id.IntegerValue == y.CollisionSprinkler.Id.IntegerValue;
		}

		public int GetHashCode(SprinklerInfo obj)
		{
			return 0;
		}
	}
}
